/*
 * HomePage.java
 *
 * Created on May 21, 2011, 10:24 AM
 */
package com.myapp.wicket;

import com.myapp.wicket.examples.DataProviderExamplePage;
import com.myapp.wicket.examples.PrependingAjaxBehaviorPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;

public class HomePage extends BasePage {

    public HomePage() {
        add(new Label("message", "Click a link to view the corresponding demo page!"));
        add(new Link("IDataProvider") {

            @Override
            public void onClick() {
                setResponsePage(DataProviderExamplePage.class);
            }
        });
        add(new Link("PrependingAjaxBehavior") {

            @Override
            public void onClick() {
                setResponsePage(PrependingAjaxBehaviorPage.class);
            }
            
        });
    }
}
